Import Breakdown Catalogue file
This will import catalogue of Breakdown job items with costs for a given customer and supplier.
NOTE:
Max allowed file size is 1.1Mb.
Fields
| Field Name | Description | Datatype | Validation | Max length | Mandatory | Example |
|---|---|---|---|---|---|---|
| Supplier | account Id/group Id (header may be Supplier or groupId) | string | Valid string | Unlimited | Yes | Y41y2jOv4xtieweJiITF |
| Product | Type of catalogue (reference only, not used by the import) | NA | NA | NA | NA | Breakdown |
| Vehicle Identifier | Unique Id for a vehicle Make & Model | string | Hyphens, plus signs, letters, digits, underscores and spaces only. Saved as default when empty | Unlimited | No | 75920321 |
| Repair Type Id | Unique Id issued by ViSN | string | Hyphens, plus signs, letters, digits, underscores and spaces only | Unlimited | Yes | BDF581871D |
| Repair Description | Brief description of the job item | string | Letters, digits, underscores, at symbols, periods, forward slashes, hash symbols, ampersands, plus signs, hyphens, parentheses, square brackets and double quotes only | Unlimited | Yes | Recovery mileage (per mile after 20 miles) |
| isAncilliary | Marks the job item as an ancillary charge | string | Case-insensitive, one of: Yes, No. Saved as false when empty or column absent | NA | No | Yes |
| Make | Vehicle Make | string | Hyphens, plus signs, letters, digits, underscores and spaces only. Saved as default when empty | Unlimited | No | CITROEN |
| Model | Vehicle Model | string | Valid string. Saved as default when empty | Unlimited | No | GRAND C4 SPACETOURER |
| Vehicle Type | Vehicle type the price applies to | string | Case-insensitive, one of: Car, LCV, Van, Commercial (under 3.5), Commercial (over 3.5), HGV, Motor Bike, Electric Car. Saved as default when empty | NA | No | CAR |
| Net Cost | Cost | decimal | Valid number | NA | Yes | 122.00 |
| Uplift Cost | Uplifted cost | decimal | Up to 5 digits with up to 2 decimal places. Must not be lower than Net Cost | NA | No | 125.00 |
| Customer Account Number | Customer account the price applies to | string | Letters, digits and underscores only. Saved as default when empty | Unlimited | No | ACC_45829 |
Combination of Make, Model, Repair Type Id, Vehicle Identifier, Vehicle Type and Customer Account Number must be unique. These fields, in that order, generate the document id; empty fields become
default. For example BDF581871D and CAR with Make, Model, Vehicle Identifier and Customer Account Number empty generatesdefault-default-bdf581871d-default-car-default
Importing a file
Preparation
- Create a new branch with Jira task number in the branch name
- Delete all the files in importFiles folder
- Create a folder with the current sprint number
- Copy the file that needs to be imported
- Go to
package.json, find the linevalidate:breakdownPriceCatalogue - Modify
--leaseIdwith the required lease Id - Modify
--filewith the relative path of the file - Save package.json
Validating locally
- in a terminal run
npm run validate:breakdownPriceCatalogue - If there are no errors, push the code
Validating in workflow
- Go to Action of Import-manger
- Find
<Environment> - on-demand-import - Select the branch that was created for this import
- Enter script name as
validate:breakdownPriceCatalogue - Leave Overrides empty
Importing the file
- If the validation has passed
- Go to Action of Import-manger
- Find
<Environment> - on-demand-import - Select the branch that was created for this import
- Enter script name as
validate:breakdownPriceCatalogue - Enter
--persistin Overrides field
Testing
- A folder will be created (if not already exists) in Firestore, under the
/accounts/<accountId from the import file>/cataloguePrice/<lease Id from package.json>/breakdown - New documents will be added in Typesense > breakdownCatalogueIndex, each carrying
isAncilliary
Status: Draft
Category: Protected
Authored By: Meet Shah on Sep 18, 2026
Revisions.